import 'bp_alicloud_push_platform_interface.dart';

class BpAlicloudPush {
  Future<String?> getPlatformVersion() {
    return BpAlicloudPushPlatform.instance.getPlatformVersion();
  }

  Future<bool?> bindAccount(String account) {
    return BpAlicloudPushPlatform.instance.bindAccount(account);
  }

  Future<bool?> unbindAccount() {
    return BpAlicloudPushPlatform.instance.unbindAccount();
  }

  void listenerEvent(Function(dynamic data) onData) {
    return BpAlicloudPushPlatform.instance.listenerEvent(onData);
  }

  void receiver(Function(dynamic data) onData) {
    return BpAlicloudPushPlatform.instance.receiver(onData);
  }
}
